package top.csmcool.musicapi.model.playlist;

/*
 * @description
 * @date 2025/1/30
 * @author shijin
 * @version 1.0
 */

import lombok.Data;

@Data
public class SearchRequest {


    // 页面
    private Integer page = 0;

    // 大小
    private Integer size = 50;

    // 歌曲/歌手/专辑
    private String name;


    public Integer getStart() {
        return this.page * this.size;
    }

    public Integer getEnd() {
        return (this.page + 1) * this.size;
    }
}
